//
//  ViewController.m
//  06- CycleImages
//
//  Created by dllo on 16/7/21.
//  Copyright © 2016年 DM.C. All rights reserved.
//

#import "ViewController.h"
#import "DMCCycleImages.h"
#define kScreenBounds  [UIScreen mainScreen].bounds
#define kScreenWidth kScreenBounds.size.width
#define kScreenHeight kScreenBounds.size.height
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    DMCCycleImages *cycleImage = [[DMCCycleImages alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, 200)];
    [self.view addSubview:cycleImage];
    NSArray *arr = @[@"0", @"1", @"2", @"3", @"4"];
    [cycleImage setImagesWithArray:arr];
    cycleImage.cycleScrollView.showsHorizontalScrollIndicator = YES;
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
